/**
 * Created by Sean on 2017/5/9.
 */
class Thread9 extends Thread {
    private String threadName;

    public Thread9(String threadName) {
        this.threadName = threadName;
    }

    public String getThreadName() {
        return threadName;
    }

    public void setThreadName(String threadName) {
        this.threadName = threadName;
    }

    public void run() {
        System.out.println("hello " + threadName);
    }
}

public class Main9 {
    public static void main(String[] args) {
        Thread9 thread = new Thread9("world");
        thread.start();
    }
}
